|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: generating a repeatable unique id
Jeni Tennison writes: > Oh, it depends on how you're doing the linking. I was imagining that > you were creating something an index.html document with the links in, > containing things like: > > <p><a href="doc.html#chapter1.section2.div3">...</a></p> oh, no. no HTML files. everything gobbed out on stdout to the client. I have a working setup for the static transform (though your methods for that are more elegant...) > But perhaps you were meaning that you wanted to only display the part > of the document that you were linking to? Of course in the future all > you'd need to do is generate: > > <p><a href="doc.xml#xpointer(/chapter[1]/section[2]/div[3])">...</a></p> :-} > But for now I guess you would generate a link that looked something > like: > > <p><a href="doc.xml?xpath=/chapter[1]/section[2]/div[3]">...</a></p> yes, *thats* what I want > With some magic on the server end, you'd get an $xpath parameter in > your stylesheet. > > You could step through the $xpath parameter to locate and apply > templates to the relevant part of the document, something like: cool. I love it. Many thanks! sebastian XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








