Lecture 5 & 6 - XSL and XPATH Flashcards

1
Q

What are the two XML style sheet languages?

A

1) Extensible stylesheet language (transformations): XSLT

2) XSL Formatting Objects: XSL-FO

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the general coding points in regards to XSLT

A

1) The stylesheet is xml and should begin with the xml declaration
2) The root of the sheet must set-up the xsl namespace

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

1) What are the three elements of a stylesheet called?

2) what do these rules use?

A

1) Template Rules

2) XPATH Expressions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What us XPATH Expressions?

A

XPATH is a separate language that identifies particular parts of an XML document.

We write XPATH in short expressions.

For example “/” is an XPATH expression indicating the document root

We embed XPATH expressions into the stylesheet
Mostly in template rules

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the basic form of an XSLT template rule?

A

The cat sat on the mat

The rule would match the root of the document
The only output would be The cat sat on the mat

How well did you know this?
1
Not at all
2
3
4
5
Perfectly